﻿<Table DataSource="data">
    <Column Title="Name" DataIndex="name" TData="string" />
    <Column Title="Chinese Score" DataIndex="chinese" TData="int" SorterMultiple="3" SorterCompare="(a,b)=>a-b"/>
    <Column Title="Math Score" DataIndex="math" TData="int" SorterMultiple="2" SorterCompare="(a,b)=>a-b"/>
    <Column Title="English Score" DataIndex="english" TData="int" SorterMultiple="1" SorterCompare="(a,b)=>a-b"/>
</Table> 
@code {

    public record Data(string Name,int Chinese,int Math,int English);

    public Data[] data =
    {
        new("John Brown",98,60,70),
        new("Jim Green",98,66,89),
        new("Joe Black",98,90,70),
        new("Jim Red",88,99,89),
    };
}
